package com.car.entity;

import java.util.ArrayList;
import java.util.List;

public class ChassisBrakeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ChassisBrakeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDriveModeIsNull() {
            addCriterion("drive_mode is null");
            return (Criteria) this;
        }

        public Criteria andDriveModeIsNotNull() {
            addCriterion("drive_mode is not null");
            return (Criteria) this;
        }

        public Criteria andDriveModeEqualTo(String value) {
            addCriterion("drive_mode =", value, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeNotEqualTo(String value) {
            addCriterion("drive_mode <>", value, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeGreaterThan(String value) {
            addCriterion("drive_mode >", value, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeGreaterThanOrEqualTo(String value) {
            addCriterion("drive_mode >=", value, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeLessThan(String value) {
            addCriterion("drive_mode <", value, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeLessThanOrEqualTo(String value) {
            addCriterion("drive_mode <=", value, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeLike(String value) {
            addCriterion("drive_mode like", value, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeNotLike(String value) {
            addCriterion("drive_mode not like", value, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeIn(List<String> values) {
            addCriterion("drive_mode in", values, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeNotIn(List<String> values) {
            addCriterion("drive_mode not in", values, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeBetween(String value1, String value2) {
            addCriterion("drive_mode between", value1, value2, "driveMode");
            return (Criteria) this;
        }

        public Criteria andDriveModeNotBetween(String value1, String value2) {
            addCriterion("drive_mode not between", value1, value2, "driveMode");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeIsNull() {
            addCriterion("front_suspension_type is null");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeIsNotNull() {
            addCriterion("front_suspension_type is not null");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeEqualTo(String value) {
            addCriterion("front_suspension_type =", value, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeNotEqualTo(String value) {
            addCriterion("front_suspension_type <>", value, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeGreaterThan(String value) {
            addCriterion("front_suspension_type >", value, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeGreaterThanOrEqualTo(String value) {
            addCriterion("front_suspension_type >=", value, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeLessThan(String value) {
            addCriterion("front_suspension_type <", value, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeLessThanOrEqualTo(String value) {
            addCriterion("front_suspension_type <=", value, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeLike(String value) {
            addCriterion("front_suspension_type like", value, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeNotLike(String value) {
            addCriterion("front_suspension_type not like", value, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeIn(List<String> values) {
            addCriterion("front_suspension_type in", values, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeNotIn(List<String> values) {
            addCriterion("front_suspension_type not in", values, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeBetween(String value1, String value2) {
            addCriterion("front_suspension_type between", value1, value2, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andFrontSuspensionTypeNotBetween(String value1, String value2) {
            addCriterion("front_suspension_type not between", value1, value2, "frontSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeIsNull() {
            addCriterion("back_suspension_type is null");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeIsNotNull() {
            addCriterion("back_suspension_type is not null");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeEqualTo(String value) {
            addCriterion("back_suspension_type =", value, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeNotEqualTo(String value) {
            addCriterion("back_suspension_type <>", value, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeGreaterThan(String value) {
            addCriterion("back_suspension_type >", value, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeGreaterThanOrEqualTo(String value) {
            addCriterion("back_suspension_type >=", value, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeLessThan(String value) {
            addCriterion("back_suspension_type <", value, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeLessThanOrEqualTo(String value) {
            addCriterion("back_suspension_type <=", value, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeLike(String value) {
            addCriterion("back_suspension_type like", value, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeNotLike(String value) {
            addCriterion("back_suspension_type not like", value, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeIn(List<String> values) {
            addCriterion("back_suspension_type in", values, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeNotIn(List<String> values) {
            addCriterion("back_suspension_type not in", values, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeBetween(String value1, String value2) {
            addCriterion("back_suspension_type between", value1, value2, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andBackSuspensionTypeNotBetween(String value1, String value2) {
            addCriterion("back_suspension_type not between", value1, value2, "backSuspensionType");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionIsNull() {
            addCriterion("adjustable_suspension is null");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionIsNotNull() {
            addCriterion("adjustable_suspension is not null");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionEqualTo(String value) {
            addCriterion("adjustable_suspension =", value, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionNotEqualTo(String value) {
            addCriterion("adjustable_suspension <>", value, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionGreaterThan(String value) {
            addCriterion("adjustable_suspension >", value, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionGreaterThanOrEqualTo(String value) {
            addCriterion("adjustable_suspension >=", value, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionLessThan(String value) {
            addCriterion("adjustable_suspension <", value, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionLessThanOrEqualTo(String value) {
            addCriterion("adjustable_suspension <=", value, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionLike(String value) {
            addCriterion("adjustable_suspension like", value, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionNotLike(String value) {
            addCriterion("adjustable_suspension not like", value, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionIn(List<String> values) {
            addCriterion("adjustable_suspension in", values, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionNotIn(List<String> values) {
            addCriterion("adjustable_suspension not in", values, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionBetween(String value1, String value2) {
            addCriterion("adjustable_suspension between", value1, value2, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andAdjustableSuspensionNotBetween(String value1, String value2) {
            addCriterion("adjustable_suspension not between", value1, value2, "adjustableSuspension");
            return (Criteria) this;
        }

        public Criteria andFwbTypeIsNull() {
            addCriterion("fwb_type is null");
            return (Criteria) this;
        }

        public Criteria andFwbTypeIsNotNull() {
            addCriterion("fwb_type is not null");
            return (Criteria) this;
        }

        public Criteria andFwbTypeEqualTo(String value) {
            addCriterion("fwb_type =", value, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeNotEqualTo(String value) {
            addCriterion("fwb_type <>", value, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeGreaterThan(String value) {
            addCriterion("fwb_type >", value, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeGreaterThanOrEqualTo(String value) {
            addCriterion("fwb_type >=", value, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeLessThan(String value) {
            addCriterion("fwb_type <", value, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeLessThanOrEqualTo(String value) {
            addCriterion("fwb_type <=", value, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeLike(String value) {
            addCriterion("fwb_type like", value, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeNotLike(String value) {
            addCriterion("fwb_type not like", value, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeIn(List<String> values) {
            addCriterion("fwb_type in", values, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeNotIn(List<String> values) {
            addCriterion("fwb_type not in", values, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeBetween(String value1, String value2) {
            addCriterion("fwb_type between", value1, value2, "fwbType");
            return (Criteria) this;
        }

        public Criteria andFwbTypeNotBetween(String value1, String value2) {
            addCriterion("fwb_type not between", value1, value2, "fwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeIsNull() {
            addCriterion("bwb_type is null");
            return (Criteria) this;
        }

        public Criteria andBwbTypeIsNotNull() {
            addCriterion("bwb_type is not null");
            return (Criteria) this;
        }

        public Criteria andBwbTypeEqualTo(String value) {
            addCriterion("bwb_type =", value, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeNotEqualTo(String value) {
            addCriterion("bwb_type <>", value, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeGreaterThan(String value) {
            addCriterion("bwb_type >", value, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeGreaterThanOrEqualTo(String value) {
            addCriterion("bwb_type >=", value, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeLessThan(String value) {
            addCriterion("bwb_type <", value, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeLessThanOrEqualTo(String value) {
            addCriterion("bwb_type <=", value, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeLike(String value) {
            addCriterion("bwb_type like", value, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeNotLike(String value) {
            addCriterion("bwb_type not like", value, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeIn(List<String> values) {
            addCriterion("bwb_type in", values, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeNotIn(List<String> values) {
            addCriterion("bwb_type not in", values, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeBetween(String value1, String value2) {
            addCriterion("bwb_type between", value1, value2, "bwbType");
            return (Criteria) this;
        }

        public Criteria andBwbTypeNotBetween(String value1, String value2) {
            addCriterion("bwb_type not between", value1, value2, "bwbType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeIsNull() {
            addCriterion("parking_brake_type is null");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeIsNotNull() {
            addCriterion("parking_brake_type is not null");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeEqualTo(String value) {
            addCriterion("parking_brake_type =", value, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeNotEqualTo(String value) {
            addCriterion("parking_brake_type <>", value, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeGreaterThan(String value) {
            addCriterion("parking_brake_type >", value, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeGreaterThanOrEqualTo(String value) {
            addCriterion("parking_brake_type >=", value, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeLessThan(String value) {
            addCriterion("parking_brake_type <", value, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeLessThanOrEqualTo(String value) {
            addCriterion("parking_brake_type <=", value, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeLike(String value) {
            addCriterion("parking_brake_type like", value, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeNotLike(String value) {
            addCriterion("parking_brake_type not like", value, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeIn(List<String> values) {
            addCriterion("parking_brake_type in", values, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeNotIn(List<String> values) {
            addCriterion("parking_brake_type not in", values, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeBetween(String value1, String value2) {
            addCriterion("parking_brake_type between", value1, value2, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andParkingBrakeTypeNotBetween(String value1, String value2) {
            addCriterion("parking_brake_type not between", value1, value2, "parkingBrakeType");
            return (Criteria) this;
        }

        public Criteria andCarStructureIsNull() {
            addCriterion("car_structure is null");
            return (Criteria) this;
        }

        public Criteria andCarStructureIsNotNull() {
            addCriterion("car_structure is not null");
            return (Criteria) this;
        }

        public Criteria andCarStructureEqualTo(String value) {
            addCriterion("car_structure =", value, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureNotEqualTo(String value) {
            addCriterion("car_structure <>", value, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureGreaterThan(String value) {
            addCriterion("car_structure >", value, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureGreaterThanOrEqualTo(String value) {
            addCriterion("car_structure >=", value, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureLessThan(String value) {
            addCriterion("car_structure <", value, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureLessThanOrEqualTo(String value) {
            addCriterion("car_structure <=", value, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureLike(String value) {
            addCriterion("car_structure like", value, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureNotLike(String value) {
            addCriterion("car_structure not like", value, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureIn(List<String> values) {
            addCriterion("car_structure in", values, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureNotIn(List<String> values) {
            addCriterion("car_structure not in", values, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureBetween(String value1, String value2) {
            addCriterion("car_structure between", value1, value2, "carStructure");
            return (Criteria) this;
        }

        public Criteria andCarStructureNotBetween(String value1, String value2) {
            addCriterion("car_structure not between", value1, value2, "carStructure");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialIsNull() {
            addCriterion("limited_slip_differential is null");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialIsNotNull() {
            addCriterion("limited_slip_differential is not null");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialEqualTo(String value) {
            addCriterion("limited_slip_differential =", value, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialNotEqualTo(String value) {
            addCriterion("limited_slip_differential <>", value, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialGreaterThan(String value) {
            addCriterion("limited_slip_differential >", value, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialGreaterThanOrEqualTo(String value) {
            addCriterion("limited_slip_differential >=", value, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialLessThan(String value) {
            addCriterion("limited_slip_differential <", value, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialLessThanOrEqualTo(String value) {
            addCriterion("limited_slip_differential <=", value, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialLike(String value) {
            addCriterion("limited_slip_differential like", value, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialNotLike(String value) {
            addCriterion("limited_slip_differential not like", value, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialIn(List<String> values) {
            addCriterion("limited_slip_differential in", values, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialNotIn(List<String> values) {
            addCriterion("limited_slip_differential not in", values, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialBetween(String value1, String value2) {
            addCriterion("limited_slip_differential between", value1, value2, "limitedSlipDifferential");
            return (Criteria) this;
        }

        public Criteria andLimitedSlipDifferentialNotBetween(String value1, String value2) {
            addCriterion("limited_slip_differential not between", value1, value2, "limitedSlipDifferential");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}